<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="(item, index) in items" :key="item.id">{{ item.message }} --- {{ index }}</li>
        </ul>
        <p :class="{ red: isRed }"></p>
        <p :class="[ classB, classC ]"></p>
        <p :class="[ classA, { classB: isB, classC: isC } ]"></p>
        <p v-bind="{ id: 'pid', class: [ classA, classB ], style: { fontSize: '12px', color: 'red' } }">123</p>
    </div>
    <script type="module">
        import { createApp } from 'https://lib.baomitu.com/vue/3.2.31/vue.esm-browser.js'
        createApp({
            data() {
                return {
                    items: [
                        { id: 1, message: 'Foo' },
                        { id: 2, message: 'Bar' }
                    ],
                    isRed: true,
                    classA: 'ca',
                    classB: 'cb',
                    classC: 'cc',
                    isB: true,
                    isC: true
                }
            }
        }).mount('#app')
    </script>
</body>
</html>